package com.itheima.stock.mapper;

import com.itheima.stock.pojo.SysLog;
import com.itheima.stock.vo.req.LogReqVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author hyn
* @description 针对表【sys_log(系统日志)】的数据库操作Mapper
* @createDate 2022-05-30 01:02:49
* @Entity com.itheima.stock.pojo.SysLog
*/
@Repository
public interface SysLogMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysLog record);

    int insertSelective(SysLog record);

    SysLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysLog record);

    int updateByPrimaryKey(SysLog record);

    /**
     * 获取所有的日志信息
     *
     * @param reqVo 请求参数
     * @return
     */
    List<SysLog> getAllPageLogs(LogReqVo reqVo);

    boolean deleteById(@Param("lists") List<Long> lid);
}
